<!DOCTYPE html>
<html ng-controller="appCtrl" data-ng-init="initSecurity(true);">
	<head>
		<meta charset="UTF-8">
		<title>贵州茂兰国家级自然保护区电子办公系统</title>
		<link rel="stylesheet" href="style/init.css">
	    <link rel="stylesheet" href="style/plugin.css">
	    <link rel="stylesheet" href="style/gis.css">
	    <link rel="stylesheet" href="style/skin.css">
	    <link rel="stylesheet" type="text/css" href="http://localhost/web-base/jquery-easyui/v1.5.2/themes/bootstrap/easyui.css">
    	<link rel="stylesheet" type="text/css" href="http://localhost/web-base/jquery-easyui/v1.5.2/themes/icon.css">
	</head>
	<!--资源调度申请流程-->
	<body data-ng-init="findWork(initGzqjgl);">
				<form name="form" novalidate style="height:calc(100% - 60px);">
		<div class="zs-sys-header">
			<div class="tools">
				<a href="javascript:;" class="tg" ng-show="gzclsq.auth.opt_tj" ng-click="setUser('gzclsq','ssqrid','ssqr') && formValidate(form) && getNextTask('gzclsq');">通过</a>
				<a href="javascript:;" ng-show="gzclsq.auth.opt_tz" class="tz" ng-click="setUser('gzclsq','ssqrid','ssqr') && formValidate(form) && getSkipTask('gzclsq');">跳转</a>
				<a href="javascript:;" ng-show="gzclsq.auth.opt_bc" class="bc" ng-click="setUser('gzclsq','ssqrid','ssqr') && bpmSave('gzclsq')">保存</a>
				<!--<a href="javascript:;" class="txsc" >图形审查</a>
				<a href="javascript:;" class="zj">自检</a>-->
				<a href="javascript:;" class="blgc" ng-click="loadBpmProcess('gzclsq')">办理过程</a>
				<a href="javascript:;" ng-show="gzclsq.auth.opt_cx" class="tj" ng-click="disposal('gzclsq')">作废</a>
				<a href="javascript:;" ng-show="gzclsq.auth.opt_ch" class="ch" ng-click="formValidate(form) && getRetractTask('gzclsq');">撤回</a>
				<!--<a href="javascript:;"  class="bh" ng-click="userDispose('gzclsq','自定义结束')">自定义结束</a>-->
<!--				<a href="javascript:;" class="gb">关闭</a>
				<a href="javascript:;"  class="bh" >驳回</a>-->
<!--				<a href="javascript:;" ng-show="gzclsq.auth.opt_ch" class="ch">撤回</a>
				<a href="javascript:;" class="dy">打印</a>
				<a href="javascript:;" ng-show="gzclsq.auth.opt_gq" class="gq">挂起</a>-->
				<a href="javascript:;" ng-show="gzclsq.auth.opt_jh" class="jh" ng-click="easter('gzclsq')">激活</a>
				<!--<a href="javascript:;" ng-show="gzclsq.auth.opt_jg" class="jg">解挂</a>-->
			<!--	<a href="javascript:;" class="ldsc">林地审查</a>
				<a href="javascript:;" class="sl">受理</a>
				<a href="javascript:;" class="tijiao">提交</a>-->
				<a href="javascript:;" ng-show="gzclsq.auth.opt_th" ng-click="formValidate(form) && getBackTask('gzclsq');"
					 class="th" ng-show="gzclsq.auth.opt_th" >退回</a>
				<!--<a href="javascript:;" class="xmsc">项目审查</a>-->
			</div>
		</div>
		<div class="zs-sys-body" ui-view="panel">
			
		</div>
			</form>
		<!-- 提交操作 -s -->
		<div ag-Window id="opt_tj" title="提交" width='320px' height='240px'>
	        <div class="zs-form-tab ibox">
	        	<form name="tjform" novalidate>
				    <table>
				        <tbody>
				        	<tr ng-repeat="task in gzclsq.opttj.nextTask">
	                                <td >
	                                	<input type="checkbox" ng-model="task.taskSelect"
	                                 	ng-if="gzclsq.opttj.selectTask"
	                                 	ng-click="selectTjTask('gzclsq',task);"
										ng-true-value="true" ng-false-value="false"> 
										<label ng-bind="task.taskName"></label>  </td>
	                                <td ><span ng-repeat="iuser in task.user">
	                                <input type="checkbox" ng-model="iuser.userSelected"
	                                	ng-click="selectTjUser('gzclsq',task,iuser);"
										ng-true-value="true" ng-false-value="false"> 

									<label ng-bind="iuser.userName"></label>

	                                </span></td>
	                        </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td colspan="2">
				                    <input type="button" name="ok" value="提交" class="zs-btn c-red"
				                    	ng-click="bpmValidate('gzclsq') && signTask('gzclsq')"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('opt_tj') 
				                    	" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
	    <!-- 提交操作 -e -->
	    
	    <!-- 退回操作 -s -->
		<div ag-Window id="opt_back" title="退回" width='320px' height='240px'>
	        <div class="zs-form-tab ibox">
	        	<form name="thform" novalidate>
				    <table>
				        <tbody>
				        	<tr ng-repeat="task in gzclsq.optback.nextTask">
                                <td >
                                	<input type="checkbox" ng-model="task.taskSelect"
                                 	ng-if="gzclsq.optback.selectTask"
                                 	ng-click="selectBackTask('gzclsq',task);"
									ng-true-value="true" ng-false-value="false"> 
									<label ng-bind="task.taskName"></label>  
                                </td>
	                        </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td>
				                    <input type="button" name="ok" value="确定" class="zs-btn c-red"
				                    	ng-click="sendBack('gzclsq')"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('opt_back') 
				                    	" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
	    <!-- 退回操作 -e -->
		
		<!-- 撤回操作 -s -->
		<div ag-Window id="opt_retract" title="撤回" width='320px' height='240px'>
		    <div class="zs-form-tab ibox">
		    	<form name="tz_form" novalidate>
				    <table>
				        <tbody>
				        	<tr ng-repeat="task in gzclsq.optretract.nextTask">
		                        <td >
		                        	<input type="checkbox" ng-model="task.taskSelect"
		                         	ng-if="gzclsq.optretract.selectTask"
		                         	ng-click="selectRetractTask('gzclsq',task);"
									ng-true-value="true" ng-false-value="false"> 
									<label ng-bind="task.taskName"></label>  
		                        </td>
		                    </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td>
				                    <input type="button" name="ok" value="确定" class="zs-btn c-red"
				                    	ng-click="retractTask('gzclsq')"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('opt_retract') 
				                    	" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
		</div>
		<!-- 撤回操作 -e -->
	    
	    <!-- 跳转操作 -s -->
		<div ag-Window id="opt_skip" title="跳转" width='320px' height='240px'>
	        <div class="zs-form-tab ibox">
	        	<form name="tzform" novalidate>
				    <table>
				        <tbody>
				        	<tr ng-repeat="task in gzclsq.optskip.nextTask">
                                <td >
                                	<input type="checkbox" ng-model="task.taskSelect"
                                 	ng-if="gzclsq.optskip.selectTask"
                                 	ng-click="selectSkipTask('gzclsq',task);"
									ng-true-value="true" ng-false-value="false"> 
									<label ng-bind="task.taskName"></label>  
                                </td>
	                        </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td>
				                    <input type="button" name="ok" value="确定" class="zs-btn c-red"
				                    	ng-click="skipTask('gzclsq')"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('opt_skip') 
				                    	" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
	    <!-- 跳转操作 -e -->

	    <!-- 办理过程 -s -->
		<div ag-Window id="opt_blgc" title="办理过程" style="width:900px;height:500px;" 
			data-ng-init="setTab('opt_blgc','process')">
			<div class="zs-nice-tab idTabs">
	    		<div class="link">
	    			<a class="{{tabs['opt_blgc'].tabClass['process']}}" ng-click="setTab('opt_blgc','process')">办理过程</a>
		    		<a class="{{tabs['opt_blgc'].tabClass['image']}}" ng-click="setTab('opt_blgc','image')">流程图</a>
	    		</div>
	    	</div>
	        <div class="zs-form-tab ibox" ng-show="tabs['opt_blgc'].tabClass['process']">
	        	<form name="prform" novalidate>
				    <table>
				        <tbody>
				        	<tr>
				        		<td class="head" width="80px">业务来源</td>
								<td class="head" width="100px">环节名称</td>
								<td class="head" width="80px">办理人</td>
								<td class="head" width="80px">办理部门</td>
								<td class="head" width="150px">接收日期</td>
								<td class="head" width="150px">办理日期</td>
			<!-- 					<td class="head" width="80px">办理限期</td> -->
								<td class="head" width="80px">办理结果</td>
								<td class="head" width="100px">详细情况</td>
				            </tr>

				            <tr ng-repeat="curRow in gzclsq.historyLst">
								<td><label ng-bind="curRow.fromassigneesname"></label></td>
								<td><label ng-bind="curRow.taskdefname"></label></td>
								<td><label ng-bind="curRow.optassigneesname"></label></td>
								<td><label ng-bind="curRow.optorgname"></label></td>
								<td><label ng-bind="curRow.fromtime | asDate | date:'yyyy-MM-dd HH时'"></label></td>
								<td><label ng-bind="curRow.opttime | asDate | date:'yyyy-MM-dd HH时'"></label></td>
								<td><label ng-bind="curRow.optresult"></label></td>
								<td><a title="{{curRow.optcontent}}"><label ng-bind="curRow.optcontent"></label></a></td>
							</tr>

				        </tbody>
				    </table>
				</form>
			</div>
			 <div class="zs-form-tab ibox" ng-show="tabs['opt_blgc'].tabClass['image']">
			<!--	<img ng-src="{{getServerBaseUrl()/processImage/loadImage?bpmkey=gzclsq.bpmkey&sexeid=gzclsq.sexeid}}"></img>-->
				<img align="center" id="bpm_img" ng-src="{{gzclsq.loadImage}}" />
			</div>
	    </div>
	    <!-- 办理过程 -e -->
		<!--<div class="zs-sys-footer">
			<span>版权所有(c)</span>
			<span>技术支持：</span>
			<span>联系电话：</span>
		</div>-->
	
<script type="text/javascript" src="http://localhost/web-base/jquery/v1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://localhost/web-base/jquery-cookie/v1.4.1/jquery.cookie.js"></script>
<script type="text/javascript" src="http://localhost/web-base/jquery-easyui/v1.5.2/jquery.easyui.min.js"></script>
<script type="text/javascript"
        src="http://localhost/web-base/jquery-easyui/v1.5.2/locale/easyui-lang-zh_CN.js"></script>

<script type="text/javascript" src="script/jquery.tipTip.js"></script>
<script type="text/javascript" src="script/jquery.ibox.3.0.js"></script>
<script type="text/javascript" src="script/jquery.itabExtend.js"></script>
<script type="text/javascript" src="script/jquery.itab.js"></script>
<script type="text/javascript" src="script/zs.layout.js"></script>
<script type="text/javascript" src="script/zs.core.js"></script>
	    
	    <!-- 基础参数初始化 -->
	    <script type="text/javascript" src="init.js"></script>

	    <!-- 业务代码初始化 -->
	    <script src="http://localhost/web-base/require/v2.3.3/require.min.js" data-main="main.js"></script>
	</body>
</html>
